package com.study.zouchao.superproject.travellist.model;


import com.study.zouchao.superproject.travellist.entity.TravelListResult;
import com.study.zouchao.superproject.util.RxSchedulers;
import com.study.zouchao.superproject.util.api.api.Api;

import java.util.Map;

import rx.Observable;


/**
 * Created by Administrator on 2017/5/24.
 */

public class TravelModel {
    public static final String URL = "http://you.ctrip.com/travels/xiamen21.html";
    public static final String URL2 = "https://m.ctrip.com/html5/you/travels/xiamen21.html";

    public Observable<TravelListResult> listTravelList(Map<String, String> params) {
        return Api.getInstance().mApiService
                .listTravelList(params)
//                .map(RxSchedulers.<TravelListResult>sleep(3000))
                .compose(RxSchedulers.<TravelListResult>io_main());
    }

}
